<%--
  Created by IntelliJ IDEA.
  User: hqqs
  Date: 2020/10/11
  Time: 8:20 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@include file="admin_menu.jsp"%>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="admin_index.jsp">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="admin_cate.jsp">分类管理</a><span class="crumb-step">&gt;</span><span>新增分类</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action=<%=request.getContextPath()%>"/manageHtml/admin_doCateadd" method="post" id="myform" name="myform" >
                   <table class="insert-tab" width="100%">
                        <tbody>
                        <tr>
                            <th><i class="require-red">*</i>父级分类：</th>
                            <td>
                                <select class="common-text required" name="parentId" >
                                    <%--添加根分类--%>
                                    <option value="0" selected="selected">根分类</option>
                                        <%--其他分类，默认只有两级别，所以父级分类只能到1级--%>
                                    <c:forEach var="cate" items="${catelist}">

                                        <c:if test="${cate.CATE_PARENT_ID == 0 }">
                                            <option value="${cate.CATE_ID}">${cate.CATE_NAME}</option>
                                        </c:if>

                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>分类名称：</th>
                            <td>
                                <input class="common-text required" id="title" name="name" size="50" value="" type="text">
                            </td>
                        </tr>

                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>
